'use strict';
/**
 * logic
 * @param  {} []
 * @return {}     []
 */
import Base from './base.js';

export default class extends Base {
  /**
   * index action logic
   * @return {} []
   */
  indexAction(){
    

    let rules = { 
      subscribe  : "required|string"
    }

    let flag = this.validate(rules);
    
    if(!flag){
      return this.http.errMsg(this.errors());
    }

    if(!this.checkUser()){
      return this.http.errMsg({error: 'No Access'});
    }
  }
}
